package com.px.system.service.impl;

import java.util.List;
import com.px.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.px.system.mapper.FlowComplaintProblemMapper;
import com.px.system.domain.FlowComplaintProblem;
import com.px.system.service.IFlowComplaintProblemService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author 品讯科技
 * @date 2024-08
 */
@Service
public class FlowComplaintProblemServiceImpl implements IFlowComplaintProblemService 
{
    @Autowired
    private FlowComplaintProblemMapper flowComplaintProblemMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public FlowComplaintProblem selectFlowComplaintProblemById(Long id)
    {
        return flowComplaintProblemMapper.selectFlowComplaintProblemById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param flowComplaintProblem 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<FlowComplaintProblem> selectFlowComplaintProblemList(FlowComplaintProblem flowComplaintProblem)
    {
        return flowComplaintProblemMapper.selectFlowComplaintProblemList(flowComplaintProblem);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param flowComplaintProblem 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertFlowComplaintProblem(FlowComplaintProblem flowComplaintProblem)
    {
        flowComplaintProblem.setCreateTime(DateUtils.getNowDate());
        return flowComplaintProblemMapper.insertFlowComplaintProblem(flowComplaintProblem);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param flowComplaintProblem 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateFlowComplaintProblem(FlowComplaintProblem flowComplaintProblem)
    {
        return flowComplaintProblemMapper.updateFlowComplaintProblem(flowComplaintProblem);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteFlowComplaintProblemByIds(Long[] ids)
    {
        return flowComplaintProblemMapper.deleteFlowComplaintProblemByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteFlowComplaintProblemById(Long id)
    {
        return flowComplaintProblemMapper.deleteFlowComplaintProblemById(id);
    }
}
